package model

type Area struct {
	BaseModel
	ParentCode string  `gorm:"type: varchar(20); COMMENT '父级编号'"json:"parentCode"`
	Name       string  `gorm:"type:varchar(100); not null; unique; COMMENT '社区名称'"json:"name"`
	ShortName  string  `gorm:"type: varchar(20); COMMENT '社区简称'"json:"shortName"`
	Children   []*Area `gorm:"-"json:"children"`
}
